import Vue from 'vue'
import Router from 'vue-router'

//登录
import login from '@/views/login'
//主内容
import container from '@/views/main/container'
//首页
import main from '@/views/system/main'

//系统管理
//权限分配
import super_distribution from '@/views/super/permissions/distribution'

//角色管理
import super_group from '@/views/super/permissions/group'

//用户管理
import management from '@/views/super/user/management'

//填空题
import question_fill from '@/views/super/question/fill'

//判断题
import question_judgment from '@/views/super/question/judgment'

//选择题
import question_radio from '@/views/super/question/radio'

//简答题
import question_simple from '@/views/super/question/simple'

//课目管理
import question_subject from '@/views/super/question/subject'

//通知管理
import notice from '@/views/system/notice'


//监考
//成绩统计
import invigilate_analysis from "@/views/invigilate/achievements/analysis"

//成绩查询
import invigilate_query from "@/views/invigilate/achievements/query"

//出卷
import invigilate_rollOut from "@/views/invigilate/examinationPaper/rollOut"

//改卷
import invigilate_volumeChange from "@/views/invigilate/examinationPaper/volumeChange"

//考场管理
import invigilate_examinationRoom from "@/views/invigilate/examinationRoom/examinationRoom"

//考生申请
import invigilate_application from "@/views/invigilate/examinee/application"

//考生信息
import invigilate_info from "@/views/invigilate/examinee/info"

//查看考卷
import invigilate_look_ExaminationPaper from "@/views/invigilate/examinationPaper/component/lookExaminationPaper"

//查看成绩单
import invigilate_scoreStatistics from '@/views/invigilate/examinationRoom/component/ScoreStatistics';

//进入考场
import invigilate_insert_room from '@/views/invigilate/examinationRoom/component/insertRoom';

//考生
//成绩查询
import examinee_find from "@/views/examinee/query/find"

//考卷查询
import examinee_paper from "@/views/examinee/query/paper"

//我的考场
import examinee_room from "@/views/examinee/room/room"

//我的考试
import examinee_test from "@/views/examinee/test/test"

//进入考场
import examinee_insert_room from '@/views/examinee/room/component/insertRoom'

Vue.use(Router);


export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: login,
    },
    {
      path: '/container',
      component: container,
      name: 'container',
      children:[
        //首页
        {
          path:"/main",
          name:"main",
          component:main
        },

        //系统管理
        {path:"/super/permissions/distribution",name:"权限分配",component:super_distribution},
        {path:"/super/permissions/group",name:"角色管理",component:super_group},
        {path:"/super/user/management",name:"用户管理",component:management},
        {path:"/system/notice",name:"通知管理",component:notice},

        //题库管理
        {path:"/super/question/radio",name:"选择题",component:question_radio},
        {path:"/super/question/fill",name:"填空题",component:question_fill},
        {path:"/super/question/judgment",name:"判断题",component:question_judgment},
        {path:"/super/question/simple",name:"简答题",component:question_simple},
        {path:"/super/question/subject",name:"科目管理",component:question_subject},

        //监考
        {path:"/invigilate/achievements/analysis",name:"成绩统计",component:invigilate_analysis},
        {path:"/invigilate/achievements/query",name:"成绩查询",component:invigilate_query},
        {path:"/invigilate/examinationPaper/rollOut",name:"出卷",component:invigilate_rollOut},
        {path:"/invigilate/examinationPaper/volumeChange",name:"改卷",component:invigilate_volumeChange},
        {path:"/invigilate/examinationRoom/examinationRoom",name:"考场管理",component:invigilate_examinationRoom},
        {path:"/invigilate/examinee/application",name:"考生申请",component:invigilate_application},
        {path:"/invigilate/examinee/info",name:"考生信息",component:invigilate_info},
        {path:"/invigilate/examinationPaper/component/lookExaminationPaper",name:"查看考卷",component:invigilate_look_ExaminationPaper},
        {path:"/invigilate/examinationRoom/component/insertRoom/:id",name:"进入考场",component:invigilate_insert_room},
        {path:"/invigilate/examinationRoom/component/ScoreStatistics",name:"查看成绩单",component:invigilate_scoreStatistics},

        //考生
        {path:"/examinee/query/find",name:"成绩查询",component:examinee_find},
        {path:"/examinee/query/paper",name:"考卷查询",component:examinee_paper},
        {path:"/examinee/room/room",name:"我的考场",component:examinee_room},
        {path:"/examinee/room/component/insertRoom/:id",name:"进入考场",component:examinee_insert_room},
        {path:"/examinee/test/test",name:"我的考试",component:examinee_test},

      ]
    },

  ]
})
